package agriculture.feign;

import agriculture.system.api.model.User;
import agriculture.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "agriculture-user",fallback = UserClientFallBack.class)
public interface UserClient {
    @GetMapping("/getUserById/{userId}")
    Result<User> getUserById(@PathVariable("userId") Long userId);
}
